//
//  NSString+NSString_Ex_.m
//  BaiduTravel
//
//  Created by chenwh on 13-1-24.
//
//

#import "NSString+NSString_Ex_.h"

@implementation NSString (NSString_Ex_)

+ (BOOL)stringIsNullOrEmpty:(NSString *)obj
{
	if (obj == nil)
    {
		return YES;
	}
	if (![obj isKindOfClass:[NSString class]])
    {
		return YES;
	}
	if ([[obj stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] isEqualToString:@""])
    {
		return YES;
	}
    
	return NO;
}

@end
